﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using clf.weighing.entity;

namespace weighing
{
    public class HistoryUser : BaseEntity
    {
        /// <summary>
        /// 登录名，只在页面上显示
        /// </summary>
        public string LoginName
        {
            get
            {
                if (string.IsNullOrEmpty(UserName))
                {
                    return Phone;
                }
                else
                {
                    return UserName;
                }
            }
        }

        /// <summary>
        /// 登录名，账号
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string Name { get; set; }
        public string Phone { get; set; }
        public string Pwd { get; set; }
        public bool IsRemberPwd { get; set; }
        public bool IsAutoLogin { get; set; }
    }
}
